
package CCT220_Trabalho04_13106.model;


import java.io.Serializable;


/**
 * </br>******************************
 * </br>Project: CCT220
 * </br>Package: CCT220_Trabalho04_13106.model
 * </br>Class: Disciplina
 * </br>Last Change: 08/10/2011 11:25:13 by marcel
 * </br>Description: Entity of Disciplina
 * </br>******************************</br>
 * 
 * @author marcel
 * @author 13106
 * 
 */
public class Disciplina implements Serializable {

	/**
	 * long
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * int
	 */
	private int               codigo;
	/**
	 * String
	 */
	private String            nome;


	/**
	 * </br>******************************
	 * </br>Constructor for
	 * </br>Package: CCT220_Trabalho04_13106.model
	 * </br>Class: Disciplina
	 * </br>LastChange: 08/10/2011 11:25:15 by marcel
	 * </br>******************************</br>
	 * 
	 * @param codigo
	 * @param nome
	 */
	public Disciplina(int codigo, String nome) {

		super();
		this.codigo = codigo;
		this.nome = nome;
	}


	/**
	 * </br>******************************
	 * </br>Package: CCT220_Trabalho04_13106.model
	 * </br>Class: Disciplina
	 * </br>Method: getCodigo
	 * </br>Last Change: 08/10/2011 11:25:17 by marcel
	 * </br>Description: Getter for codigo
	 * </br>******************************</br>
	 * 
	 * @return codigo
	 */
	public int getCodigo() {

		return codigo;
	}


	/**
	 * </br>******************************
	 * </br>Package: CCT220_Trabalho04_13106.model
	 * </br>Class: Disciplina
	 * </br>Method: getNome
	 * </br>Last Change: 08/10/2011 11:25:19 by marcel
	 * </br>Description: Getter for nome
	 * </br>******************************</br>
	 * 
	 * @return nome
	 */
	public String getNome() {

		return nome;
	}


	/**
	 * </br>******************************
	 * </br>Package: CCT220_Trabalho04_13106.model
	 * </br>Class: Disciplina
	 * </br>Method: setCodigo
	 * </br>Last Change: 08/10/2011 11:25:21 by marcel
	 * </br>Description: Setter for codigo
	 * </br>******************************</br>
	 * 
	 * @param codigo
	 *            to set the codigo
	 */
	public void setCodigo(int codigo) {

		this.codigo = codigo;
	}


	/**
	 * </br>******************************
	 * </br>Package: CCT220_Trabalho04_13106.model
	 * </br>Class: Disciplina
	 * </br>Method: setNome
	 * </br>Last Change: 08/10/2011 11:25:23 by marcel
	 * </br>Description: Setter for nome
	 * </br>******************************</br>
	 * 
	 * @param nome
	 *            to set the nome
	 */
	public void setNome(String nome) {

		this.nome = nome;
	}


	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {

		return "\nDisciplina \n   +codigo: " + codigo + "\n   +nome: " + nome
		        + "";
	}

}
